package repository

import "context"

// DBProvider 数据库提供者接口
type DBProvider interface {
	Save(ctx context.Context, entity interface{}) error
	FindByID(ctx context.Context, id interface{}) (interface{}, error)
	Delete(ctx context.Context, id interface{}) error
	FindByIndex(ctx context.Context, indexName string, indexValue interface{}) ([]interface{}, error)
	FindAll(ctx context.Context) ([]interface{}, error)
}
